package com.sk.k01.m01.service.impl;

import com.sk.k01.m01.entity.User;
import com.sk.k01.m01.mapper.UserMapper;
import com.sk.k01.m01.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User selectById(String id) {
        return userMapper.selectById(id);
    }

    @Override
    public List<User> selectList(User user) {
        return userMapper.selectList(user);
    }

    @Override
    public Long insert(User user) {
        return userMapper.insert(user);
    }

    @Override
    public Long delete(String id) {
        return userMapper.delete(id);
    }

    @Override
    public Long deleteAll(String ids) {
        return userMapper.deleteAll(ids);
    }

    @Override
    public Long update(User user) {
        return userMapper.update(user);
    }
}
